<div class="head_box">
	<div class="logo"><a href="/"><img src="<?php echo image_url('logo.png'); ?>"></a></div>
    <div class="menu">
    	<div class="link">
        	<a href="mailto:499013056@qq.com">
            	<i class="ico ico_email"></i>
                <p>发送邮件</p>
            </a>
        </div>
    	<div class="link">
        	<a href="tel:7735452000">
            	<i class="ico ico_tel"></i>
                <p><?php echo $this->config->item('telephone'); ?></p>
            </a>
        </div>
        <div class="nav">
        	<ul>
                <li><a href="/" class="tit on"><i class="ico"></i>首页</a></li>
                <li><a href="/about.html" class="tit"><i class="ico"></i>关于我们</a></li>
                <li>
                	<a href="/service.html" class="tit"><i class="ico"></i>服务</a>
                    <h1 class="sub_menu" style="display:none;">
                        <?php if ($category) : ?>
                            <?php foreach ($category as $key => $val) : ?>
                                <p>
                                    <a href="<?php echo "/service/" . $val['id'] . ".html"; ?>"><?php echo $val['category_name'] ?? ""; ?></a>
                                </p>
                            <?php endforeach; ?>
                        <?php endif; ?>
                    </h1>
                </li>
                <li>
                	<a href="/properties.html" class="tit"><i class="ico"></i>物业</a>
                    <h1 class="sub_menu" style="display:none;">
                    	<p><a href="/properties.html">商业</a></p>
                        <p><a href="/press.html">住宅</a></p>
                    </h1>
                </li>
                <li>
                	<a href="/news.html" class="tit"><i class="ico"></i>新闻</a>
                    <h1 class="sub_menu" style="display:none;">
                    	<p><a href="/news.html">获奖情况</a></p>
                        <p><a href="/news_list.html">新闻发布</a></p>
                    </h1>
                </li>
                <li><a href="/contact.html" class="tit"><i class="ico"></i>联系我们</a></li>
            </ul>
        </div>
    </div>
</div>
<!-- banner [[-->

<div id="wrap">
    <ul class="hiSlider hiSlider3">
        <?php if (isset($banner['pc']) && !empty($banner['pc'])) : ?>
            <?php foreach ($banner['pc'] as $key => $val) : ?>
                <li class="hiSlider-item"><img src="<?php echo $val['pic_url']; ?>"></li>
            <?php endforeach; ?>
        <?php endif; ?>

    </ul>
</div>
<!--]] banner -->
<script>
    // 移到主菜单
    $(".tit").mouseover(function () {
        event.stopPropagation();
        $(this).next().show();
    });
    // 移到子菜单
    $(".sub_menu").mouseover(function () {
        event.stopPropagation();
        $(this).show();
    });
    // 移出主菜单
    $(".tit").mouseout(function () {
        $(this).next().hide();
    });
    // 移出主菜单
    $(document).on('mouseout', ':not(.sub_menu)', function () {
        $(".sub_menu").hide();
    });

</script>
